{extend name="public:layout" /}
{block name="title"}修改配置组{/block}
{block name="head"}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('Config/index')}"> 站点配置</a></li>
                <li><a href="{:url('index')}"> 配置组管理</a></li>
                <li class="active">修改配置组</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="id" value="{$info.id}" />
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">配置组标题</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入配置组标题"
                               name="group_title" value="{$info.group_title}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">配置组标识</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入配置组标识"
                               name="group_name" value="{$info.group_name}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">排序</label>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" placeholder="请输入排序"
                               name="group_sort" value="{$info.group_sort}" datatype="n"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    $(function(){
        ajaxSubForm('#btnSub');
    });
</script>
{/block}